#ifndef UCCONFIGWIDGET_H
#define UCCONFIGWIDGET_H

#include <QtGui>
#include <bean.h>
#include "ui_ucconfigWidget.h"


class DevUCItemModel:public QStandardItemModel
{
    Q_OBJECT
public:
    DevUCItemModel(QObject * parent=0);
    virtual ~ DevUCItemModel();
    QVariant data(const QModelIndex & index,int role=Qt::DisplayRole) const;
    void setDatas(QList<DevConf> datas);
private:
    void initProperty();
    QList<DevConf> datas;
};

class UcConfigWidget : public QWidget,public Ui::UcConfigForm
{
    Q_OBJECT
public:
    explicit UcConfigWidget(QWidget *parent = 0);
    DevUCItemModel *mDevModel;
    
signals:
    
public slots:
    void devNumChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
    void createProject();
    
};

#endif // UCCONFIGWIDGET_H
